<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>组件通信-父到子</title>
</head>

<body>
    <div id="app">
        <introduce name="张三" ></introduce>

        <introduce :name="title" /></introduce>
    </div>

    <script src="./node_modules/vue/dist/vue.js"></script>
    <script>
        Vue.component("introduce", {
            template: '<div>大家好，我是：{{name}}</div>',
            props: ['name']
        });

        var app = new Vue({
            el: '#app',
            data: {
                title: '123456'
            }
        });
    </script>
</body>

</html>